﻿@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var keyValue = $.request("keyValue");
    $(function () {
        if (!!keyValue) {
            $.ajax({
                url: "/MiniSite/Favorite/GetFormJson",
                data: { keyValue: keyValue },
                dataType: "json",
                async: false,
                success: function (data) {
                    $("#form1").formSerialize(data);
                }
            });
        }
    });
    function submitForm() {
        if (!$('#form1').formValid()) {
            return false;
        }
        $.submitForm({
            url: "/MiniSite/Favorite/SubmitForm?keyValue=" + keyValue,
            param: $("#form1").formSerialize(),
            success: function () {
                $.currentWindow().$("#gridList").trigger("reloadGrid");
            }
        })
    }
</script>

<form id="form1">
    <div style="padding-top: 20px; margin-right: 20px;">
        <table class="form">
            <tr>
                <th class="formTitle">客户编号</th>
                <td class="formValue">
                    <input id="F_CustomerId" name="F_CustomerId" type="text" class="form-control required" placeholder="请录入客户编号" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">场地活动攻略编号</th>
                <td class="formValue">
                    <input id="F_FavoriteId" name="F_FavoriteId" type="text" class="form-control required" placeholder="请录入场地活动攻略编号" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">类型1场地2活动3攻略</th>
                <td class="formValue">
                    <input id="F_Type" name="F_Type" type="text" class="form-control required" placeholder="请录入类型1场地2活动3攻略" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">收藏链接地址</th>
                <td class="formValue">
                    <input id="F_URL" name="F_URL" type="text" class="form-control required" placeholder="请录入收藏链接地址" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">收藏状态0未收藏1已收藏</th>
                <td class="formValue">
                    <input id="F_Status" name="F_Status" type="text" class="form-control required" placeholder="请录入收藏状态0未收藏1已收藏" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">排序</th>
                <td class="formValue">
                    <input id="F_Sort" name="F_Sort" type="text" class="form-control required" placeholder="请录入排序" />
                </td>
            </tr>
        </table>
    </div>
</form>


